import type { ComposeOption } from "echarts/core";
import type {
  TitleComponentOption,
  TooltipComponentOption,
  GridComponentOption,
  LegendComponentOption,
} from "echarts/components";
import { BarSeriesOption, PieSeriesOption, LineSeriesOption } from "echarts/charts";

export type EChartsOption = ComposeOption<
  | TitleComponentOption
  | TooltipComponentOption
  | GridComponentOption
  | LegendComponentOption
  | BarSeriesOption
  | PieSeriesOption
  | LineSeriesOption
>;

export type DefaultSeriesOption = {
  bar: BarSeriesOption;
};

export type SeriesOption = BarSeriesOption | PieSeriesOption | LineSeriesOption;
